package com.sunday.demo.lod2.test;

import com.sunday.demo.lod2.Serializable;
import com.sunday.demo.lod2.impl.Serialization;
import org.springframework.web.bind.annotation.GetMapping;

/**
  @program: design-patterns
  @author: Jh
  @create: 2021-09-01 10:50
*/
public class LodTest1 {

    private Serializable serializable;

    public LodTest1(Serializable serializable) {
        this.serializable = serializable;
    }


    public String serialize(Object obj) {
        return serializable.serialize(obj);
    }

}
